cmake_minimum_required(VERSION 3.5)

set(PROJECT_DIR ".")
set(PROJECT_NAME spectrogram)
project(${PROJECT_NAME} LANGUAGES CXX)

set(CMAKE_INCLUDE_CURRENT_DIR ON)

set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)

set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

find_package(Qt5 COMPONENTS Widgets REQUIRED)

# include files
include_directories(${auidoutils_Header})

FILE(GLOB SRC_FILES ${PROJECT_DIR}/*.cpp)
FILE(GLOB HEAD_FILES ${PROJECT_DIR}/*.h)
FILE(GLOB RC_FILES ${PROJECT_DIR}/*.rc ${PROJECT_DIR}/*.def)

add_executable(${PROJECT_NAME} ${SRC_FILES} ${HEAD_FILES} ${RC_FILES})
target_include_directories(${PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR})

target_link_libraries(${PROJECT_NAME} PRIVATE Qt5::Widgets)
target_link_libraries(${PROJECT_NAME} PRIVATE audioutils)
